import React from 'react'
import { connect } from 'react-redux'
import request from './../../utils/request'
import "./a.css"

const home = (props) => {
    props.getBannerList()
    return (
        <div className="ho">
            欢迎使用，嗨购后台管理系统
        </div>
    )
}

export default connect(
    state => {
        return {
            isLogin: state.getIn(['user', 'isLogin'])
        }
    },
    () => {
        return {
            getBannerList () {
                return request({
                    url: '/banner/list'
                })
            }
        }
    }
)(home)